//
//  DzNetHttp.h
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void (^HttpRequestSucBlock)(id data);
typedef void (^HttpRequestFailBlock) (NSError *error);
@interface DzNetHttp : NSObject
+ (DzNetHttp*)defaultRequest;
- (void)get:(NSString *)apiUrl param:(NSDictionary * __nullable)paramDic success:(HttpRequestSucBlock)successBlack fail:(HttpRequestFailBlock)failBlack;
- (void)post:(NSString *)apiUrl param:(NSDictionary * __nullable)paramDic success:(HttpRequestSucBlock)successBlack fail:(HttpRequestFailBlock)failBlack;


@end

NS_ASSUME_NONNULL_END
